package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.OrderCommentDao;
import com.platform.entity.OrderCommentEntity;
import com.platform.service.OrderCommentService;

/**
 * 订单评论表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-22 10:46:10
 */
@Service("orderCommentService")
public class OrderCommentServiceImpl implements OrderCommentService {
    @Autowired
    private OrderCommentDao orderCommentDao;

    @Override
    public OrderCommentEntity queryObject(Integer id) {
        return orderCommentDao.queryObject(id);
    }

    @Override
    public List<OrderCommentEntity> queryList(Map<String, Object> map) {
        return orderCommentDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return orderCommentDao.queryTotal(map);
    }

    @Override
    public int save(OrderCommentEntity orderComment) {
        return orderCommentDao.save(orderComment);
    }

    @Override
    public int update(OrderCommentEntity orderComment) {
        return orderCommentDao.update(orderComment);
    }

    @Override
    public int delete(Integer id) {
        return orderCommentDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return orderCommentDao.deleteBatch(ids);
    }
}
